package com.myrpc.consumer.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.myrpc.common.entity.InfoUser;
import com.myrpc.common.entity.Order;
import com.myrpc.common.removeface.InfoUserRemoveFace;
import com.myrpc.common.removeface.OrderRemoveFace;

@RestController
public class IndexController {
	
	@Autowired
	InfoUserRemoveFace infoUserRemoveFace;//orderRemoveface
	
	@Autowired
	OrderRemoveFace orderRemoveFace;
	
	@RequestMapping("/findById")
	public InfoUser findById(String id) {
		return infoUserRemoveFace.findByid(id);
	}
	
	@RequestMapping("/findOrderById")
	public Order findOrderById(String id) {
		return orderRemoveFace.getById(id);
	}
	

}
